/******************************************************************************
 * @File name   :      MasterDataDealerInfo.java
 *
 * @Author      :      ANMA
 *
 * @Date        :      Jul 15, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * ----------------------------------------------------------------------------
 * Date                         Who         Version         Comments
 * Jul 15, 2015 7:41:52 PM    ANMA      1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.logistic.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TT_LOGISTIC_PROCESS_HISTORY")
@AttributeOverrides({
	@AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
	@AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class LogisticProcessHistory extends BaseDomain implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8992485389224183898L;

	private Long id;
	private Long logisticId;
    private Date receiveDate;
    private Integer receivedQuantity;
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="LOGISTIC_ID")
    public Long getLogisticId() {
        return logisticId;
    }
    public void setLogisticId(Long logisticId) {
        this.logisticId = logisticId;
    }
 
    @Column(name="RECEIVE_DATE")
    public Date getReceiveDate() {
        return receiveDate;
    }
    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }
    /**
     * @Date        :      Aug 11, 2015
     *
     * @return the receivedQuantity
     */
    @Column(name="RECEIVED_QUANTITY")
    public Integer getReceivedQuantity() {
        return receivedQuantity;
    }

    /**
     * @Date        :      Aug 11, 2015
     *
     * @param receivedQuantity the receivedQuantity to set
     */
    public void setReceivedQuantity(Integer receivedQuantity) {
        this.receivedQuantity = receivedQuantity;
    }
    
		
}
